package service;

public class School {
    private String schoolName;
    private  String schoolAddress;
    private Teacher teacher;
    private String lessonName;
    public School(String schoolName,String lessonName){
        this.schoolName=schoolName;
        this.lessonName=lessonName;
    }
    public void goLesson(){
        //System.out.println(this.getSchoolName()+"正在上"+this.getLessonName());
        System.out.println(this.getSchoolName()+"正在上课");
    }
    public void desc(){
        System.out.println("学校名称是："+this.getSchoolName()+"学校地址是："+this.getSchoolAddress());
    }

    public String getSchoolName() {
        return schoolName;
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }

    public String getSchoolAddress() {
        return schoolAddress;
    }

    public void setSchoolAddress(String schoolAddress) {
        this.schoolAddress = schoolAddress;
    }

    public Teacher getTeacher() {
        return teacher;
    }

    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }

    public String getLessonName() {
        return lessonName;
    }

    public void setLessonName(String lessonName) {
        this.lessonName = lessonName;
    }
}
